export const rules: any = {
  username: [
    { required: true, message: "请输入用户名", trigger: "blur" },
    { min: 3, max: 20, message: "长度在 3 到 20 个字符", trigger: "blur" },
  ],
  nickName: [{ required: true, message: "请输入昵称", trigger: "blur" }],
  introduction: [{ required: true, message: "请输入介绍", trigger: "blur" }],
  avatar: [{ required: true, message: "请上传头像", trigger: "blur" }],
  state: [{ required: true, message: "请选择状态", trigger: "change" }],
}

export const rulesRole: any = {
  roleId: [{ required: true, message: "请选择角色", trigger: "change" }],
}
